import request from '@/utils/request'

// 查询教育经历表列表
export function listEducation_history(query) {
    return request({
        url: '/ehr/education_history/list',
        method: 'get',
        params: query
    })
}

// 查询教育经历表详细
export function getEducation_history(eduId) {
    return request({
        url: '/ehr/education_history/' + eduId,
        method: 'get'
    })
}

// 新增教育经历表
export function addEducation_history(data) {
    return request({
        url: '/ehr/education_history',
        method: 'post',
        data: data
    })
}

// 修改教育经历表
export function updateEducation_history(data) {
    return request({
        url: '/ehr/education_history',
        method: 'put',
        data: data
    })
}

// 删除教育经历表
export function delEducation_history(eduId) {
    return request({
        url: '/ehr/education_history/' + eduId,
        method: 'delete'
    })
}